//
//  UserDataEditCell.m
//  Molian
//
//  Created by 胡津 on 15/4/8.
//  Copyright (c) 2015年 xiaocan. All rights reserved.
//

#import "UserDataEditCell.h"

@implementation UserDataEditCell

- (void)awakeFromNib {
    // Initialization code
}

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
//        self.selectionStyle = UITableViewCellSelectionStyleNone;

        
        //推荐标题
        self.titleLabel = [[UILabel alloc]init];
        self.titleLabel.textColor = [UIColor grayColor];
        self.titleLabel.textAlignment = NSTextAlignmentRight;
        self.titleLabel.font = [UIFont fontWithName:FontName size:14];//改字体和大小
        self.titleLabel.adjustsFontSizeToFitWidth = YES;
        [self.contentView addSubview:self.titleLabel];
        
        
        self.contentLabel = [[UILabel alloc]init];
        self.contentLabel.frame = CGRectMake(90, 0, DeviceWidth-120, 50);
        self.contentLabel.textColor = [UIColor blackColor];
        self.contentLabel.textAlignment = NSTextAlignmentLeft;
        self.contentLabel.font = [UIFont fontWithName:FontName size:14];//改字体和大小
        self.contentLabel.numberOfLines = 0;
        self.contentLabel.adjustsFontSizeToFitWidth = YES;
        [self.contentView addSubview:self.contentLabel];
        
    
        CATransition *trans=[[CATransition alloc]init];
        [trans setType:kCATransitionReveal];
        [trans setSubtype:kCATransitionFromRight];
        [trans setDuration:0.5];
        [self.layer addAnimation:trans forKey:nil];
    }
    
    return self;
}


-(void)layoutSubviews
{
    [super layoutSubviews];
    self.titleLabel.frame = CGRectMake(10, 0, 70, 50);
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
